package cn.kill.orderservice.service.order;

import cn.kill.orderservice.pojo.PayOrder;

import java.util.Date;


/**
 * @author 张在成
 */
public interface OrderService {

    /**
     * 保存订单
     * @return  PayOrder
     */
    PayOrder  saveOrder(String body,double money);

    /**
     * 根据订单号查询订单
     * @param orderNo
     * @return
     */
    PayOrder  selectOrderDetail(String orderNo);

    /**
     * 支付成功之后的回调
     * @param orderNo
     * @param payNo
     * @param payTime
     */
    boolean  paySucess(String orderNo, String payNo, Date payTime);



}
